package com.hippo.core.util.custom;

import cn.binarywang.tools.generator.base.GenericGenerator;

import java.util.Random;


public class VINGenerator extends GenericGenerator {
    private static final GenericGenerator instance = new VINGenerator();

    private VINGenerator() {
    }

    public static GenericGenerator getInstance() {
        return instance;
    }


    @Override
    public String generate() {
        Random random = new Random();
        String[] worldFactoryCode = new String[]{"TRU", "WAU", "1YV", "JM1", "4US", "WBA", "WBS", "WDB", "2HM", "KMH", "VF3", "SAJ", "WP0", "SAL", "YK1", "YS3", "YV1"};
        String[] carModel = new String[]{"1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H","J", "K", "L", "M", "N", "P", "R", "S", "T", "V", "W", "X", "Y"};
        int index = (int) (Math.random() * worldFactoryCode.length);
        String prefix = worldFactoryCode[index];
        return prefix;
    }

    public static void main(String[] args) {
        System.out.println(VINGenerator.getInstance().generate());
    }
}
